package beans;

import java.awt.Color;

import javax.swing.ImageIcon;
import javax.swing.JButton;

@SuppressWarnings("serial")
public class Botao extends JButton {
	private int i;
	private int j;
//	private char cor;
//	private char peca;

	public Botao(){
		
	}
	
	public Botao(int i, int j, Color cor) 
	{
		super("");
		this.i=i;
		this.j=j;
		this.setBackground(cor);
	}
	public int getI() {
		return i;
	}

	public void setI(int i) {
		this.i = i;
	}

	public int getJ() {
		return j;
	}

	public void setJ(int j) {
		this.j = j;
	}
	public void setIcone(String icone){
		this.setIcon(new ImageIcon(getClass().getResource(icone)));
	}
	
	public void setIconeDesabilitado(String icone){
		this.setDisabledIcon(new ImageIcon(getClass().getResource(icone)));
	}
}
